package models

// Adminuser undefined
type Adminuser struct {
	ID         int64    `json:"id" gorm:"id"`
	Name       string   `json:"name" gorm:"name"`
	Username   string   `json:"username" gorm:"username"`
	Pwd        string   `json:"pwd" gorm:"pwd"`
	Quanxianid int64    `orm:"column(quanxianid)" json:"quanxianid"`
	Quanxian   Quanxian `gorm:"ForeignKey:Quanxianid;AssiciationForeignKey:Id"`
}
type Adminusersql struct {
	ID           int64  `json:"id" gorm:"id"`
	Name         string `json:"name" gorm:"name"`
	Username     string `json:"username" gorm:"username"`
	Pwd          string `json:"pwd" gorm:"pwd"`
	Quanxianid   int64  `orm:"column(quanxianid)" json:"quanxianid"`
	Quanxianname string `orm:"column(quanxianname)" json:"quanxianname"`
}

// TableName 表名称
func (*Adminuser) TableName() string {
	return "adminuser"
}

type Quanxian struct {
	ID      int64  `gorm:"column:id" db:"id" json:"id" form:"id"`
	Name    string `gorm:"column:name" db:"name" json:"name" form:"name"`
	Content string `gorm:"column:content" db:"content" json:"content" form:"content"`
}

func (Quanxian) TableName() string {
	return "quanxian"
}

// Adminlog undefined
type Adminlog struct {
	ID          int64  `json:"id" gorm:"id"`
	Content     string `json:"content" gorm:"content"`
	Addtime     int64  `json:"addtime" gorm:"addtime"`
	Adminuserid int64  `json:"adminuserid" gorm:"adminuserid"`
	Ip          string `json:"ip" gorm:"ip"`
}

// TableName 表名称
func (*Adminlog) TableName() string {
	return "adminlog"
}
